package Homework.two;
import java.io.*;

public class Test2 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("123.jpg"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("1234.jpg"));
        int b;
        while(( b= bis.read())!=-1){
            bos.write(b);
        }
        bos.close();
        bis.close();
        System.out.println("复制完毕!");
    }
}
